package com.sptpc.learnspring.repository;

import com.sptpc.learnspring.model.Category;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Optional;

public interface CategoryRepository extends JpaRepository<Category,Long> {
    List<Category> findCategoriesByNameAndCreateTimeBetween(String name, LocalDateTime dstart,LocalDateTime end);
    Optional<Category> findCategoriesByNameLike(String name); //were name like 参数
}
